package com.example.homeworkmanagement.service;

import com.example.homeworkmanagement.pojo.Teachers;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.homeworkmanagement.vo.ResultVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 拒绝加班
 * @since 2025-05-25
 */
public interface TeachersService extends IService<Teachers> {
    //登录
    public ResultVO<Teachers> login(String teacher_id, String password)throws Exception;
    //单表
    // 获取所有教师列表
    ResultVO<List<Teachers>> getTeacherList(Teachers teacher, int page, int size);

    // 根据工号获取教师详情
    ResultVO<Teachers> getTeacherDetail(String teacherId);

    // 添加教师
    ResultVO<Teachers> addTeacher(Teachers teacher);

    // 更新教师信息
    ResultVO<Teachers> updateTeacher(Teachers teacher);

    // 删除教师（根据工号）
    ResultVO<Teachers> deleteTeacher(String teacherId);

    //根据教师姓名模糊查询教师id
    ResultVO<List<String>> selectByTeacherName(String teacherName);
}
